/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.qframe.client.util;

import com.google.gwt.core.client.GWT;

/**
 *
 * @author gprasad
 */
public class URLUtil {

    public static String getAppPath() {
        return GWT.getHostPageBaseURL();
    }

    public static String contextToCompletePath(String contextPath) {
//        if (!contextPath.startsWith("/")) {
//            contextPath = "/" + contextPath;
//        }
        return getAppPath() + contextPath;
    }
}
